import { request, BaseResponse } from '@/utils/request';
/**
 * @description 登录
 * @param {LoginParams} data
 * @returns
 */

export function login(data: API.LoginParams) {
  return request<BaseResponse<API.LoginResult>>(
    {
      url: 'login',
      method: 'post',
      data,
    },
    {
      isMock: true,
      isGetDataDirectly: false,
    },
  );
}

export function Unitregion() {
  return request<BaseResponse<API.Unitregion>>(
    {
      url: '/comRegion/unitregionrdata/1',
      method: 'get',
    },
    {
      isGetDataDirectly: false,
    },
  );
}
